import { NgModule } from '@angular/core';
import { CommonModule } from "@angular/common";
import { FormsModule } from "@angular/forms";
import { HttpModule } from "@angular/http";
import { MdlModule } from 'angular2-mdl';

import { TodoComponent } from './todo.component';
import { TodoFooterComponent } from './todo-footer/todo-footer.component';
import { TodoHeaderComponent } from './todo-header/todo-header.component';
import { TodoService } from './services/todo.service';
import { routing } from './todo.routes';
import { TodoListComponent } from './todo-list/todo-list.component';
import { TodoItemComponent } from './todo-item/todo-item.component';

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        HttpModule,
        routing,
        MdlModule
    ],
    declarations: [
        TodoComponent,
        TodoFooterComponent,
        TodoHeaderComponent,
        TodoListComponent,
        TodoItemComponent
    ],
    providers: [
        // {provide: 'todoService', useClass: TodoService}
    ]
})
export class TodoModule{

}